package com.gaoda.booksystem.entity;

import java.util.Date;

/**
 * @author: LuckyBear
 * @date: 2018-12-10 20:53
 * @description:
 */
public class Book {
    private int id; //图书表主键
    private String bookName;    //书名
    private int bookNumber;  //图书编号
    private int bookType;    //图书类型      1、古典文学 2、青春文学 3、小说 4、艺术 5、文化 6、历史 7、经济
    private String bookPublishers;  //图书出版社
    private Date bookTime;  //登记时间
    private String bookAuthor;  //作者
    private int bookAllNum; //图书总量
    private int bookNum;    //图书余量
    private String brief;   //图书简介
    private String photo;   //图书封面
    private String delflag;     //逻辑删除表示符

    public Book() {
    }

    public Book(String bookName, int bookNumber, int bookType, String bookPublishers, Date bookTime, String bookAuthor, int bookAllNum, int bookNum, String brief, String photo, String delflag) {
        this.bookName = bookName;
        this.bookNumber = bookNumber;
        this.bookType = bookType;
        this.bookPublishers = bookPublishers;
        this.bookTime = bookTime;
        this.bookAuthor = bookAuthor;
        this.bookAllNum = bookAllNum;
        this.bookNum = bookNum;
        this.brief = brief;
        this.photo = photo;
        this.delflag = delflag;
    }

    public Book(int id, String bookName, int bookNumber, int bookType, String bookPublishers, Date bookTime, String bookAuthor, int bookAllNum, int bookNum, String brief, String photo, String delflag) {
        this.id = id;
        this.bookName = bookName;
        this.bookNumber = bookNumber;
        this.bookType = bookType;
        this.bookPublishers = bookPublishers;
        this.bookTime = bookTime;
        this.bookAuthor = bookAuthor;
        this.bookAllNum = bookAllNum;
        this.bookNum = bookNum;
        this.brief = brief;
        this.photo = photo;
        this.delflag = delflag;
    }

    public Book(int id, String bookName, int bookNumber, int bookType, String bookPublishers, String bookAuthor, int bookAllNum, String brief, String photo, String delflag) {
        this.id = id;
        this.bookName = bookName;
        this.bookNumber = bookNumber;
        this.bookType = bookType;
        this.bookPublishers = bookPublishers;
        this.bookAuthor = bookAuthor;
        this.bookAllNum = bookAllNum;
        this.brief = brief;
        this.photo = photo;
        this.delflag = delflag;
    }

    public Book(int id, String photo, int bookNumber, String bookName, String bookPublishers, String bookAuthor, int bookType, int bookAllNum, int bookNum, String brief) {
        this.id = id;
        this.photo = photo;
        this.bookNumber = bookNumber;
        this.bookName = bookName;
        this.bookPublishers = bookPublishers;
        this.bookAuthor = bookAuthor;
        this.bookType = bookType;
        this.bookAllNum = bookAllNum;
        this.bookNum = bookNum;
        this.brief = brief;
    }



    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getBookName() {
        return bookName;
    }

    public void setBookName(String bookName) {
        this.bookName = bookName;
    }

    public int getBookNumber() {
        return bookNumber;
    }

    public void setBookNumber(int bookNumber) {
        this.bookNumber = bookNumber;
    }

    public int getBookType() {
        return bookType;
    }

    public void setBookType(int bookType) {
        this.bookType = bookType;
    }

    public String getBookPublishers() {
        return bookPublishers;
    }

    public void setBookPublishers(String bookPublishers) {
        this.bookPublishers = bookPublishers;
    }

    public Date getBookTime() {
        return bookTime;
    }

    public void setBookTime(Date bookTime) {
        this.bookTime = bookTime;
    }

    public String getBookAuthor() {
        return bookAuthor;
    }

    public void setBookAuthor(String bookAuthor) {
        this.bookAuthor = bookAuthor;
    }

    public int getBookAllNum() {
        return bookAllNum;
    }

    public void setBookAllNum(int bookAllNum) {
        this.bookAllNum = bookAllNum;
    }

    public int getBookNum() {
        return bookNum;
    }

    public void setBookNum(int bookNum) {
        this.bookNum = bookNum;
    }

    public String getBrief() {
        return brief;
    }

    public void setBrief(String brief) {
        this.brief = brief;
    }

    public String getPhoto() {
        return photo;
    }

    public void setPhoto(String photo) {
        this.photo = photo;
    }

    public String getDelflag() {
        return delflag;
    }

    public void setDelflag(String delflag) {
        this.delflag = delflag;
    }

    @Override
    public String toString() {
        return "Book{" +
                "id=" + id +
                ", bookName='" + bookName + '\'' +
                ", bookNumber='" + bookNumber + '\'' +
                ", bookType='" + bookType + '\'' +
                ", bookPublishers='" + bookPublishers + '\'' +
                ", bookTime=" + bookTime +
                ", bookAuthor='" + bookAuthor + '\'' +
                ", bookAllNum=" + bookAllNum +
                ", bookNum=" + bookNum +
                ", brief='" + brief + '\'' +
                ", photo='" + photo + '\'' +
                ", delflag='" + delflag + '\'' +
                '}';
    }
}
